package com.feicheng.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.entity.PurchaseHeader;
import com.feicheng.mapper.PurchaseHeaderMapper;
import com.feicheng.model.PurchaseHeaderWithUser;
import com.feicheng.service.IPurchaseHeaderService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hao.zhang
 * @since 2022-07-04
 */
@Service
public class PurchaseHeaderServiceImpl extends ServiceImpl<PurchaseHeaderMapper, PurchaseHeader> implements IPurchaseHeaderService {

    /**
     *
     * @param page
     * @param wrapper
     * @author feng.zhang
     * @return
     */
    @Override
    public Page<PurchaseHeaderWithUser> selectPurchaseHeader(
            Page<PurchaseHeaderWithUser> page,
            Wrapper wrapper) {
        return this.getBaseMapper().selectPurchaseHeader(page,wrapper);
    }

    /**
     *
     * @param wrapper
     * @author clin.song
     * @return
     */
    @Override
    public PurchaseHeaderWithUser selectPurchaseHeaderWithUser(
            @Param(Constants.WRAPPER) Wrapper wrapper) {
        return this.getBaseMapper().selectPurchaseHeaderWithUser(wrapper);
    }
}
